package edu.ynu.se.xiecheng.achitectureclass.project.dao;

import edu.ynu.se.xiecheng.achitectureclass.project.entity.Device;
import edu.ynu.se.xiecheng.achitectureclass.project.entity.SoilData;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface SoilDataRepository extends JpaRepository<SoilData, Long> {
        Optional<SoilData> findByDeviceAndName(Device device, String name); // 返回类型正确

}
